package com.iran.mediator.example;

/**
 * 联合国安理会 具体的中介者
 */
public class UnitedNationsSecurityCouncil extends UnitedNations {
    private China china;
    private Japan japan;

    public void setChina(China china) {
        this.china = china;
    }

    public void setJapan(Japan japan) {
        this.japan = japan;
    }

    @Override
    public void declare(String message, Country country) {
        if (country == china){
            japan.getMessage(message);
        }else {
            china.getMessage(message);
        }
    }
}
